import 'package:flutter/foundation.dart';
import 'package:get/get.dart';

class CountController extends GetxController {
  final _count = 0.obs;
  set count(value) => _count.value = value;
  get count => _count.value;

  add() => _count.value++;

  @override
  void onInit() {
    super.onInit();
    if (kDebugMode) {
      print("onInit");
    }
  }

  @override
  void onClose() {
    super.onClose();
    if (kDebugMode) {
      print("onClose");
    }
  }
}
